/*

Copyright 2007 Renaun Erickson (http://renaun.com)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

@ignore
*/
package asfslib.events
{

import flash.events.Event;

/**
 *  Provides a standard event with a data property for service calls
 *
 *  @author Renaun Erickson
 */
public class FamilySearchErrorEvent extends Event
{
    //--------------------------------------------------------------------------
    //
    //  Constants
    //
    //--------------------------------------------------------------------------
    	
    /**
     * 	Defines the value of the type property of an error event object.
     */
	public static const ERROR:String = "error";

    //--------------------------------------------------------------------------
    //
    //  Constructor
    //
    //--------------------------------------------------------------------------

	/**
	 * 	Constructor
	 */
	public function FamilySearchErrorEvent(type:String, bubbles:Boolean = false, 
													cancelable:Boolean = false,
													message:String = "",
													statusCode:int = 0)
	{
		super(type, bubbles, cancelable);
		this.statusCode = statusCode;
		this.message = message;
	}
	
	public var statusCode:int = 0;
	
	public var message:String = "";

}
}